import React, { Component } from 'react'

export default class ListItem extends Component {
  render() {
    console.log('list',this.props.data);
    return (
      <div>
        {
            this.props.data.map(item=><div key={item}>{this.props.callback(item)}</div>) 
        }
      </div>
    )
  }
}
